#define _CRT_SECURE_NO_WARNINGS 1
#pragma warning(disable:4996)
#include<stdio.h>
#include<string.h>
int main() {
	char c[10] = { 0 };
	gets(c);
	int left = 0;
	int right = strlen(c) - 1;
	while (left <= right) {
		int temp = c[left];
		c[left] = c[right];
		c[right] = temp;
		left++;
		right--;
	}
	puts(c);
	return 0;
}